
/*
插件里面调试用_log输出
*/
import resolve from 'rollup-plugin-node-resolve';
import commonjs from 'rollup-plugin-commonjs';
import babel from 'rollup-plugin-babel';

export default {
  input: './src/index.js',
  legacy:true,
  output: {
    file: '../rmos/web/static/js/godebug.js',
   // file: '../rmos/static/js/godebug.min.js',
    legacy:false,
    name: 'godebug',
    // exports:' ',  
    format: 'umd'
  },
  watch: {
    include: ['src/*','src/*/*','rollup.config.js']
  },
   plugins: [
    resolve({
      jsnext: true,  // 该属性是指定将Node包转换为ES2015模块
      // main 和 browser 属性将使插件决定将那些文件应用到bundle中
      main: true,  // Default: true 
      browser: true // Default: false
    }),
    babel(),
    commonjs(),
   ]
}